import request from '@/utils/request'

const api_name = '/user'

export function login(data) {
  return request({
    url: `${api_name}/login`,
    method: 'post',
    data
  })
}

export function getPageList(data) {
  return request({
    url: `${api_name}/get`,
    method: 'post',
    data
  })
}

export function CreateUser(data) {
  return request({
    url: `${api_name}/create`,
    method: 'post',
    data
  })
}

export function DeleteUser(data) {
  return request({
    url: `${api_name}/delete`,
    method: 'post',
    data
  })
}

export function BackUpUser(data) {
  return request({
    url: `${api_name}/update/back_up`,
    method: 'post',
    data
  })
}

export function EditPassword(data) {
  return request({
    url: `${api_name}/update/password`,
    method: 'post',
    data
  })
}
